import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
/**
 * @description 路由拦截器
 * @author 王冰
 * @date 2024/09/26 13:48
 */
const whiteList = ['/login', '/loading'];

export const interceptor = (router) => {
  // 加载条开关
  // NProgress.start();
  // NProgress.done();

  router.beforeEach((to, from, next) => {
    // 拦截逻辑写在这里
    console.log(1234);
    next();
  });
};

export default interceptor;
